package com.hmkj.core.service.strategy.impl;

import com.hmkj.common.baseMapper.GenericMapper;
import com.hmkj.core.mapper.strategy.StrategyRankMapper;
import com.hmkj.core.po.strategy.StrategyRank;
import com.hmkj.core.service.strategy.StrategyRankService;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 策略排行业务相关Service接口实现<br>
 *
 * @ClassName: StrategyRankServiceImpl
 * @author eproo
 * @date   2018-07-09 03:29:31
 */
@Service
@Scope("prototype")
@Transactional(rollbackFor = Exception.class)
public class StrategyRankServiceImpl implements StrategyRankService {

	@Resource
    private StrategyRankMapper strategyRankMapper;

    @Override
    public GenericMapper<StrategyRank,Integer> _getMapper() {
        return strategyRankMapper;
    }

    @Override
    public List<StrategyRank> selectStrategyRank() {
        return strategyRankMapper.selectStrategyRank(StrategyRank.STATUS.T2.code);
    }
}
